const express = require("express");
const app = express();
//引入数据库
require("./mongoose");
const AdminModule = require("./mongoose/module/index");
//引入addAdmin路游
const addAdmin = require("./router/addAdmin");
//查找管理员列表
const getAdminList = require("./router/getAdminList");
//点击删除管理员
const deleteAdmin = require("./router/deletAdmin");
//上传图片模块
const upLoadImg = require("./router/upLoadImg");
//登陆
const login = require("./router/login");
//渲染图片
const getImg = require("./router/getImg");
app.use(addAdmin);
app.use(getAdminList);
app.use(deleteAdmin);
app.use(login);
app.use(upLoadImg);
app.use(getImg);
//监听服务器
app.listen(8090, () => {
  console.log("服务器已监听...");
});
